package com.talent.proxy.mysql.common;

/**
 * 
 * <table border="1">
<tbody>
<tr>
<td><span><strong>Flag Name</strong></span></td>
<td><span><strong>FlagDescription</strong></span></td>
</tr>
<tr>
<td><code>CLIENT_COMPRESS</code></td>
<td>Use compression protocol.（<span style="font-weight:bold">使用压缩协议</span>。）</td>
</tr>
<tr>
<td><code>CLIENT_FOUND_ROWS</code></td>
<td>Return the number of found (matched) rows, not the number ofchanged rows.（<span style="font-weight:bold">返回找到（匹配）的行数，而不是改变了的行数</span>。）</td>
</tr>
<tr>
<td><code>CLIENT_IGNORE_SIGPIPE</code></td>
<td>Prevents the client library from installing a <code>SIGPIPE</code> signal handler. This can be used to avoidconflicts with a handler that the application has alreadyinstalled.（<span style="font-weight:bold">阻止客户端库安装一个SIGPIPE信号处理器。这个可以用于当应用程序已经安装该处理器的时候避免与其发生冲突。</span>）</td>
</tr>
<tr>
<td><code>CLIENT_IGNORE_SPACE</code></td>
<td>Allow spaces after function names. Makes all functions namesreserved words.（<span style="font-weight:bold">允许在函数名后使用空格。所有函数名可以预留字</span>。）</td>
</tr>
<tr>
<td><code>CLIENT_INTERACTIVE</code></td>
<td>Allow <a href="http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html#sysvar_interactive_timeout">
<code>interactive_timeout</code></a> seconds(instead of <a href="http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html#sysvar_wait_timeout">
<code>wait_timeout</code></a> seconds) ofinactivity before closing the connection. The client's session<a href="http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html#sysvar_wait_timeout"><code>wait_timeout</code></a> variable is set tothe value
 of the session <a href="http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html#sysvar_interactive_timeout">
<code>interactive_timeout</code></a>variable.（<span style="font-weight:bold">允许使用关闭连接之前的不活动交互超时的描述，而不是等待超时秒数。客户端的会话等待超时变量变为交互超时变量</span>。）</td>
</tr>
<tr>
<td><code>CLIENT_LOCAL_FILES</code></td>
<td>Enable <a title="12.2.6.&nbsp;<wbr>LOAD DATA INFILE Syntax" href="http://dev.mysql.com/doc/refman/5.0/en/load-data.html">
<code>LOAD DATA LOCAL</code></a> handling.</td>
</tr>
<tr>
<td><code>CLIENT_MULTI_RESULTS</code></td>
<td>Tell the server that the client can handle multiple result setsfrom multiple-statement executions or stored procedures. This flagis automatically enabled if<code>CLIENT_MULTI_STATEMENTS</code> is enabled. See the notefollowing this table for more information
 about thisflag.（<span style="font-weight:bold">通知服务器客户端可以处理由多语句或者存储过程执行生成的多结果集。当打开</span><code style="font-weight:bold">CLIENT_MULTI_STATEMENTS时，</code><span style="font-weight:bold">这个标志自动的被打开。可以在本表后查看更多关于该标志位的信息。</span>）</td>
</tr>
<tr>
<td><code>CLIENT_MULTI_STATEMENTS</code></td>
<td>Tell the server that the client may send multiple statements ina single string (separated by “<span><code>;</code></span>”). If this flag is not set,multiple-statement execution is disabled. See the note followingthis table for more information about this
 flag.（<span style="font-weight:bold">通知服务器客户端可以发送多条语句（由分号分隔）。如果该标志为没有被设置，多条语句执行</span>。）</td>
</tr>
<tr>
<td><code>CLIENT_NO_SCHEMA</code></td>
<td>Don't allow the <em><code>db_name.tbl_name.col_name</code></em> syntax.This is for ODBC. It causes the parser to generate an error if youuse that syntax, which is useful for trapping bugs in some ODBCprograms.（<span style="font-weight:bold">不允许“数据库名.表名.列名”这样的语法。这是对于ODBC的设置。当使用这样的语法时解析器会产生一个错误，这对于一些ODBC的程序限制bug来说是有用的。</span>）</td>
</tr>
<tr>
<td><code>CLIENT_ODBC</code></td>
<td>Unused.（不使用）</td>
</tr>
<tr>
<td><code>CLIENT_SSL</code></td>
<td>Use SSL (encrypted protocol). This option should not be set byapplication programs; it is set internally in the client library.Instead, use<a title="20.9.3.67.&nbsp;<wbr>mysql_ssl_set()" href="http://dev.mysql.com/doc/refman/5.0/en/mysql-ssl-set.html"><code>mysql_ssl_set()</code></a>
 before calling <a title="20.9.3.52.&nbsp;<wbr>mysql_real_connect()" href="http://dev.mysql.com/doc/refman/5.0/en/mysql-real-connect.html">
<code>mysql_real_connect()</code></a>.（<span style="font-weight:bold">使用SSL。这个设置不应该被应用程序设置，他应该是在客户端库内部是设置的。可以在调用mysql_real_connect()之前调用mysql_ssl_set()来代替设置。</span>）</td>
</tr>
<tr>
<td><code>CLIENT_REMEMBER_OPTIONS</code></td>
<td>Remember options specified by calls to <a title="20.9.3.49.&nbsp;<wbr>mysql_options()" href="http://dev.mysql.com/doc/refman/5.0/en/mysql-options.html">
<code>mysql_options()</code></a>. Without this option, if<a title="20.9.3.52.&nbsp;<wbr>mysql_real_connect()" href="http://dev.mysql.com/doc/refman/5.0/en/mysql-real-connect.html"><code>mysql_real_connect()</code></a> fails, you must repeatthe<a title="20.9.3.49.&nbsp;<wbr>mysql_options()" href="http://dev.mysql.com/doc/refman/5.0/en/mysql-options.html"><code>mysql_options()</code></a>
 calls before trying to connectagain. With this option, the<a title="20.9.3.49.&nbsp;<wbr>mysql_options()" href="http://dev.mysql.com/doc/refman/5.0/en/mysql-options.html"><code>mysql_options()</code></a> calls need not berepeated.（<span style="font-weight:bold">记住通过调用mysql_options()生成的设置。如果不使用这个设置，当mysql_real_connect失败时，再重新连接之前必须反复调用mysql_options()。当然，如果使用这个设置，就不必反复调用了。</span>）</td>
</tr>
</tbody>
</table>
 * @see http://dev.mysql.com/doc/internals/en/capability-flags.html#packet-Protocol::CapabilityFlags
 */
public class Capabilities
{

	/** new more secure passwords */
	public static final int CLIENT_LONG_PASSWORD = 0x00000001;
	/**Found instead of affected rows（返回找到（匹配）的行数，而不是改变了的行数。）*/
	public static final int CLIENT_FOUND_ROWS = 0x00000002;
	/** Get all column flags */
	public static final int CLIENT_LONG_FLAG = 0x00000004;
	/** One can specify db on connect*/
	public static final int CLIENT_CONNECT_WITH_DB = 0x00000008;

	/**  Don't allow the db_name.tbl_name.col_name syntax.This is for ODBC. It causes the parser to generate an error if youuse that syntax, which is useful for trapping bugs in some ODBCprograms.（不允许“数据库名.表名.列名”这样的语法。这是对于ODBC的设置。当使用这样的语法时解析器会产生一个错误，这对于一些ODBC的程序限制bug来说是有用的。）*/
	public static final int CLIENT_NO_SCHEMA = 16;

	/** Can use compression protcol */
	public static final int CLIENT_COMPRESS = 0x00000020;

	/**  Odbc client*/
	public static final int CLIENT_ODBC = 64;

	/** Can use LOAD DATA LOCAL Enable LOAD DATA LOCAL handling. */
	public static final int CLIENT_LOCAL_FILES = 0x00000080;

	/** Ignore spaces before '('*/
	public static final int CLIENT_IGNORE_SPACE = 256;

	/** for > 4.1.1*/
	public static final int CLIENT_PROTOCOL_41 = 0x00000200;
	/** This is an interactive client*/
	public static final int CLIENT_INTERACTIVE = 0x00000400;
	/** Switch to SSL after handshake*/
	public static final int CLIENT_SSL = 0x00000800;

	/** IGNORE sigpipes*/
	public static final int CLIENT_IGNORE_SIGPIPE = 4096;

	/** Client knows about transactions*/
	public static final int CLIENT_TRANSACTIONS = 0x00002000;
	/** for 4.1.0 only*/
	public static final int CLIENT_RESERVED = 0x00004000;
	/** New 4.1 authentication*/
	public static final int CLIENT_SECURE_CONNECTION = 0x00008000;
	/** Enable/disable multiquery support*/
	public static final int CLIENT_MULTI_STATEMENTS = 0x00010000;
	/** Tell the server that the client can handle multiple result setsfrom multiple-statement executions or stored procedures. This flagis automatically enabled ifCLIENT_MULTI_STATEMENTS is enabled. See the notefollowing this table for more information about thisflag.
	 * （通知服务器客户端可以处理由多语句或者存储过程执行生成的多结果集。当打开CLIENT_MULTI_STATEMENTS时，这个标志自动的被打开。可以在本表后查看更多关于该标志位的信息。）*/
	public static final int CLIENT_MULTI_RESULTS = 0x00020000;
	public static final int CLIENT_PLUGIN_AUTH = 0x00080000;
	public static final int CLIENT_CONNECT_ATTRS = 0x00100000;
	public static final int CLIENT_PLUGIN_AUTH_LENENC_CLIENT_DATA = 0x00200000;
	public static final int CLIENT_CAN_HANDLE_EXPIRED_PASSWORD = 0x00400000;
	public static final int CLIENT_SESSION_TRACK = 0x00800000;
	public static final int CLIENT_DEPRECATE_EOF = 0x01000000;

}
